package com.tianshuo.model;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @ClassName : User
 * @Description : 用户类
 * @Author : tianshuo
 * @Date: 2020-08-20 11:23
 */
@Component
@Lazy
public class User {
	private String name;
	public User() {
		System.out.println("user construct");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "User{" +
				"name='" + name + '\'' +
				'}';
	}
}

